<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/14
 * Time: 11:00
 */

include_once '../tools/DbTools.php';
session_start();
$userinfo = $_SESSION[$_COOKIE['Token']];
DbTools::InitDb();
$sql = "select CardMoney from bankcard where CardId = ".$userinfo['CardId'];
$result = DbTools::select($sql);
DbTools::close();
$money = $result[0]['CardMoney'];
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
</head>
<body>
<form action="transferAction.php" method="post">
    转出卡号:<input type="text" value="<?php echo $userinfo['CardNo'];?>" readonly="readonly" disabled="disabled" />
    <br />
    当前余额:<input type="text" name="money" value="<?php echo $money;?>" readonly="readonly" disabled="disabled">
    <br />
    转账金额:<input type="text" name="accounts" value="" />
    <br />
    转入卡号:<input type="text" name="moneyInCardNo" value="" />
    <br />
    <input type="submit" value="提交"/>
</form>
</body>
</html>